package com.xur.springboot.service.impl;

import com.xur.springboot.entity.Companies;
import com.xur.springboot.entity.CompanyDetails;
import com.xur.springboot.mapper.CompanyDetailsMapper;
import com.xur.springboot.service.CompanyDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyDetailsServiceImpl implements CompanyDetailsService {

    @Autowired
    private CompanyDetailsMapper CompanyDetailsMapper;


    @Override
    public List<CompanyDetails> queryCompanyDetails() {
        return this.CompanyDetailsMapper.queryCompanyDetails();
    }


    //根据com_id查询公司的招聘信息列表
    @Override
    public List<CompanyDetails> queryHCByCom_id(int com_id) {
        return CompanyDetailsMapper.queryHCByCom_id(com_id);
    }
}